package com.genius.mall.cloud.cartorder.feign;

import com.genius.mall.cloud.product.model.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 商品FeignClient
 */
@FeignClient(value = "mall-cloud-product")
public interface ProductFeignClient {

    @GetMapping("product/detailForFeign")
    Product detailForFeign(@RequestParam Integer id);

    @GetMapping("product/updateStock")
    void updateStock(@RequestParam Integer productId,@RequestParam Integer stock);
}
